package Abstract3;

public class Test
{
    public static void main(String[] args)
    {
        //抽象类的设计场景：模板方法设计模式。
        //学生老师都要发言
        People a1 = new Student();
        People a2 = new Teacher();
        a1.write();
        a2.write();
    }
}
